package cn.buddha.jec.model.head;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @ClassName TongPageHead
 * @Date 2019/11/3 16:15
 * @Description 业务(请求头 / 响应头)分页信息，当API接口为查询服务时，需要上送该模型
 * @Version 1.0
 */
@Setter
@Getter
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TongPageHead {

    @ApiModelProperty(value = "总记录数")
    private long total;

    @ApiModelProperty(value = "总页数", position = 1)
    private long pages;

    @ApiModelProperty(value = "当前页,请求时必输", position = 2)
    private long currentPage;

    @ApiModelProperty(value = "每页显示条数,请求时必输(默认展示10条数据)", position = 3)
    private long size = 10;

}
